<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateGoodsClassTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('goods_class', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('class_name', 100)->nullable()->comment('商品类型');
			$table->integer('fid')->nullable()->default(0);
			$table->string('code', 20)->nullable()->comment('商品对应编码');
			$table->timestamps();
			$table->text('class_info', 65535)->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('goods_class');
	}

}
